<template>
  <div class="main-box">
    <div class="container">
      <div class="container-title">常用</div>
      <div class="search-box">
        <div
          class="search-item"
          v-for="item in searchList"
          :key="item.id"
          @click="goDetail(item)"
        >
          {{ item.name }}
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import localData from '../utils/localData.js'
export default {
  data () {
    return {
      searchList: localData.searchList
    }
  },
  methods: {
    goDetail (item) {
      window.open(item.url, '_blank')
    }
  }
}
</script>

<style lang="less" scoped>
.main-box {
  display: flex;
  justify-content: center;
  .container {
    width: 1200px;
    height: 600px;
    background: rgba(255, 255, 255, 0.38);
    box-shadow: 0px 16px 32px 0px rgba(10, 57, 111, 0.24),
      inset 0px 0px 50px 0px rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    border: 4px solid rgba(255, 255, 255, 0.48);
    .container-title {
      width: 100%;
      height: 50px;
      font-size: 18px;
      font-weight: 600;
      margin: 30px 0 0 30px;
    }
    .search-box {
      padding: 10px 30px 15px 30px;
      display: flex;
      flex-wrap: wrap;
      .search-item {
        width: 85px;
        height: 35px;
        text-align: center;
        line-height: 35px;
        cursor: pointer;
        margin: 0 46.875px 15px 0;
        &:nth-child(9n) {
          margin-right: 0;
        }
        &:hover {
          color: red;
        }
      }
    }
  }
}
</style>>
